package com.whq.mvc.base.designpattern.bridge;

public class MainTest {
    public static void main(String[] args) {
        Bridge bridge = new MyBridge();
        Sourceable sub1 = new SourceSub1();
        Sourceable sub2 = new SourceSub2();

        bridge.setSourceable(sub1);
        bridge.method();
        bridge.setSourceable(sub2);
        bridge.method();
    }
}
